class WeiboInfoDB:
    def __init__(self, id, content, attitudes, comments, reposts, times, user_id):
        """
        数据结构描述
        weibo_id: 博客id
        content: 博客内容
        attitudes: 点赞数
        comments: 评论数
        reposts: 转发数
        times: 发布日期
        两种情况：2024-11-12 09:20:46 或 05月13日 16:31
        统一换成：yyyy-mm-dd hh:mm:ss
        """
        self.weibo_id = id
        self.content = content
        self.attitudes = attitudes
        self.comments = comments
        self.reposts = reposts
        self.release_time = times
        self.user_id = user_id
    
    def json(self):
        result = {
            "weibo_id": self.weibo_id,
            "content": self.content,
            "attitudes": self.attitudes,
            "comments": self.comments,
            "reposts": self.reposts,
            "release_time": self.release_time,
            "user_id": self.user_id
        }
        return result
        
        